Banded Report Editor - Barcodes

Argos version 6.0 and higher supports the ability to print USPS Intelligent Mail and Code 128 type barcodes on your banded reports. These barcodes can be used for various purposes, such as taking advantage of US Postal Service bulk mailing discounts, scanning standardized forms, and other applications.

There are three steps required to produce barcodes in Argos:

  1. Install the barcode font.
  2. Store the string to be encoded (the text of the barcode) into a variable.
  3. Add the barcode data field to the report, referencing the variable you created.

Installing Barcode Fonts

As with any other fonts used in Argos reports, the barcode font you wish to use must be installed on both the report developer’s machine and the MAPS server. The list of fonts visible in the drop-downs in Argos is populated from the client machine, but the fonts used at run time are those on the server (since MAPS does the actual job processing).

You can download the USPS Intelligent Mail barcode fonts and Code 128 barcode fonts from the Documentation and Software page of the Evisions website. After unzipping the file, refer to the instructions in the \docs\ folder to install the fonts.

In order to print hard copy output, the MAPS server must be rebooted before any new fonts can be used. PDF output should render correctly without a reboot. Note that it is the actual machine that must be restarted, not just the MAPS service.

Creating the Barcode String

The barcode string is the text that is read when scanning the barcode. You can create this string using a SQL statement, and then store it into a variable for use in the report.

The string format and contents will depend on your purpose for using a barcode. You should construct the string to match whatever format is specified by the application or process that will be reading the barcodes.

Code 128 Barcode Format

Code 128 barcodes can be used for a wide variety of applications. The format of the barcode string will depend on your specific usage, but can include alphanumeric or numeric-only characters as required.

Code 128 barcode encoding the string "CODE 128".

USPS Intelligent Mail Barcode Format

The United States Postal Service provides mailing discounts to customers who use barcodes to identify large volumes of outgoing mail. This solution is also known as the USPS OneCode Solution or USPS 4-State Customer barcode (4CB, 4-CB, or USPS4CB).

In this case, the barcode string contains a number that represents address and postage information. This barcode is added to the report in such a way that it will print on envelopes or on the mailer portion of a form.

Envelope showing the USPS intelligent mail barcode above the mailing address.

The barcode consists of a 20 to 31-digit number containing information identifying the sender, the mail class, and the destination ZIP code. The first half of the barcode is a tracking code composed of the barcode identifier, service type identifier, mailer identifier, and serial number. The second half contains the recipient's routing (ZIP) code.

Code Field Digits Description
Tracking code Barcode Identifier 2 Presort identification number – describes whether or not the mail has already been sorted to some extent.
Chart of USPS Barcode Identifiers.
Tracking code Service Type Identifier 3 Type of mail service (e.g. first class, standard, priority, etc.).
Chart of USPS Service Type Identifiers.
Tracking code Mailer Identifier 6 or 9 Unique number identifying the USPS customer (the sender). Assigned by USPS .
Tracking code Serial number 9 or 6 Sender’s serial or sequence number to track each piece of mail.
  • If the Mailer Identifier is 6 digits, the serial number can use 9.
  • If the Mailer Identifier is 9 digits, the serial number can use 6.
Routing code Delivery point ZIP code 0, 5, 9, or 11 Recipient’s ZIP code.
Total - 20-31 Total barcode length depends on length of routing code


For exact specifications and any updates or changes, please refer to the USPS publications available at https://postalpro.usps.com/mailing/intelligent-mail-barcode.

Adding the Barcode Datafield

To add a barcode to your banded report, select the barcode button  on the object toolbar and then click the location on the report where you would like to place the barcode. The Barcode Datafield dialog will open, allowing you to specify the data source and various barcode properties:

Barcode properties dialog showing the USPS Intelligent Mail barcode type and corresponding USPSIMBStandard font selected.

Troubleshooting

Nothing is printing where a USPS Intelligent Mail barcode should appear

If the USPS Intelligent Mail barcode encoder receives invalid input, it will not print. This feature helps to prevent mail from being sent out with invalid barcodes.

The barcode is printing as a string of letters instead of as a barcode

This indicates that the numeric string has been encoded, but the system is unable to use the barcode font that turns the character string into an actual barcode. Check to make sure that:

The barcode is the wrong size/in the wrong location

The barcode looks correct but does not scan

Recipients of PDF files are unable to view the barcodes

By default, PDF files produced by Argos save the fonts as part of the PDF file. If the font embedding is set to None for some reason, this may prevent users from viewing the fonts (including barcode fonts) unless the user happens to have the required font installed on their machine. To make sure that barcodes display correctly in PDF output, you should leave the font embedding set to Full or Subset in the PDF options.